function promise(){
  return new promise((resolve,reject)=>{
    api({ ...obj, success: resolve, fail: reject})
  })
}
module.exports={
  request:function(obj){
    return promise(wx.request)
  }
}